using System;

namespace Commandparser
{
    public abstract class IPropertyObject
    {
        public object Value { get; set; }

        public virtual IPropertyObject Parse(string content)
        {
            return null;
        }

        public virtual bool IsType(string content)
        {
            return false;
        }

        internal string Middle(String str, string startchar, string endchar)
        {
            int strStart = str.IndexOf(startchar) + 1;
            int strEnd = str.LastIndexOf(endchar);
            return str.Substring(strStart, strEnd - strStart);
        }

    }
}